package com.csoracle.beans;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResultInfo implements Serializable {

    //标识是否成功
    private boolean flag;
    //携带的提示信息
    private String message;

    //成功之后的数据
    private Object object;

    public ResultInfo(boolean flag,String message){
        this.flag = flag;
        this.message = message;
    }
}
